<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><strong>View</strong></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>View</code></h1>
<p>视图类</p>
<p>

</p>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#View:new">View:new ([frame])</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setColor">View:setColor (Color)</a></td>
	<td class="summary">设置颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setLayout">View:setLayout (DLayout)</a></td>
	<td class="summary">设置布局</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getLayout">View:getLayout ()</a></td>
	<td class="summary">获取布局</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getColor">View:getColor ()</a></td>
	<td class="summary">获取颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getDisplayedColor">View:getDisplayedColor ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getDisplayedAlpha">View:getDisplayedAlpha ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getAlpha">View:getAlpha ()</a></td>
	<td class="summary">获取透明度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setAlpha">View:setAlpha (alpha)</a></td>
	<td class="summary">设置透明度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:updateDisplayedColor">View:updateDisplayedColor (Color)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:updateDisplayedAlpha">View:updateDisplayedAlpha (alpha)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:description">View:description (description)</a></td>
	<td class="summary">描述，供调试使用例如：<CAView | TextTag = %s | Tag = %d ></td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setZOrder">View:setZOrder (zorder)</a></td>
	<td class="summary">设置zorder</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getZOrder">View:getZOrder ()</a></td>
	<td class="summary">获取zorder</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setVertexZ">View:setVertexZ (vertexz)</a></td>
	<td class="summary">设置顶点z轴值</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getVertexZ">View:getVertexZ ()</a></td>
	<td class="summary">获取顶点z轴值</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setScaleX">View:setScaleX (scale)</a></td>
	<td class="summary">设置x轴缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getScaleX">View:getScaleX ()</a></td>
	<td class="summary">获取x轴缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setScaleY">View:setScaleY (scale)</a></td>
	<td class="summary">设置y轴缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getScaleY">View:getScaleY ()</a></td>
	<td class="summary">获取y轴缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setScale">View:setScale (scale)</a></td>
	<td class="summary">设置缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getScale">View:getScale ()</a></td>
	<td class="summary">获取缩放</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setSkewX">View:setSkewX (skew)</a></td>
	<td class="summary">设置X倾斜</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSkewX">View:getSkewX ()</a></td>
	<td class="summary">获取X倾斜</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setSkewY">View:setSkewY (skew)</a></td>
	<td class="summary">设置Y倾斜</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSkewY">View:getSkewY ()</a></td>
	<td class="summary">获取Y倾斜</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setAnchorPoint">View:setAnchorPoint (point)</a></td>
	<td class="summary">设置锚点例如0.5,0.5表示居中</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getAnchorPoint">View:getAnchorPoint ()</a></td>
	<td class="summary">获取锚点</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setAnchorPointInPoints">View:setAnchorPointInPoints (point)</a></td>
	<td class="summary">设置锚点的坐标点</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getAnchorPointInPoints">View:getAnchorPointInPoints ()</a></td>
	<td class="summary">获取锚点的坐标点</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setFrame">View:setFrame (rect)</a></td>
	<td class="summary">设置位置</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getFrame">View:getFrame ()</a></td>
	<td class="summary">获取位置</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setFrameOrigin">View:setFrameOrigin (origin)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getFrameOrigin">View:getFrameOrigin ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setCenter">View:setCenter (center)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getCenter">View:getCenter ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setBounds">View:setBounds (size)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getBounds">View:getBounds ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setCenterOrigin">View:setCenterOrigin (origin)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getCenterOrigin">View:getCenterOrigin ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setNativeSize">View:setNativeSize (size)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setNativeWidth">View:setNativeWidth (width)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setNativeHeight">View:setNativeHeight (height)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getNativeSize">View:getNativeSize ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setVisible">View:setVisible (visible)</a></td>
	<td class="summary">设置是否显示</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isVisible">View:isVisible ()</a></td>
	<td class="summary">是否显示</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setRotation">View:setRotation (rotation)</a></td>
	<td class="summary">设置旋转</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getRotation">View:getRotation ()</a></td>
	<td class="summary">获取旋转度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setRotationX">View:setRotationX (rotation)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getRotationX">View:getRotationX ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setRotationY">View:setRotationY (rotation)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getRotationY">View:getRotationY ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:addSubview">View:addSubview (view)</a></td>
	<td class="summary">添加子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:insertSubview">View:insertSubview (view, zorder)</a></td>
	<td class="summary">插入视图，指定插入渲染顺序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewByTag">View:getSubviewByTag (tag)</a></td>
	<td class="summary">根据标签查找子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewByTextTag">View:getSubviewByTextTag (tag)</a></td>
	<td class="summary">根据文本标签查找子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewByTagEx">View:getSubviewByTagEx (tag)</a></td>
	<td class="summary">根据标签递归查找所有子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewByTextTagEx">View:getSubviewByTextTagEx (tag)</a></td>
	<td class="summary">根据文本标签递归查找所有子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewByIdx">View:getSubviewByIdx (index)</a></td>
	<td class="summary">根据索引查找子视图，用于遍历子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSubviewsCount">View:getSubviewsCount ()</a></td>
	<td class="summary">获取子视图的数量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setSuperview">View:setSuperview (supperView)</a></td>
	<td class="summary">设置视图的父视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getSuperview">View:getSuperview ()</a></td>
	<td class="summary">获取视图的父视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:removeFromSuperview">View:removeFromSuperview ()</a></td>
	<td class="summary">从父视图移除该视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:removeSubview">View:removeSubview (subView)</a></td>
	<td class="summary">移除子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:removeSubviewByTag">View:removeSubviewByTag (tag)</a></td>
	<td class="summary">根据标签移除子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:removeSubviewByTextTag">View:removeSubviewByTextTag (tag)</a></td>
	<td class="summary">根据标签移除子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:removeAllSubviews">View:removeAllSubviews ()</a></td>
	<td class="summary">移除所有子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:reorderSubview">View:reorderSubview (child, zorder)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:sortAllSubviews">View:sortAllSubviews ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isRunning">View:isRunning ()</a></td>
	<td class="summary">视图是否正在运行</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setTag">View:setTag (tag)</a></td>
	<td class="summary">设置标签</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getTag">View:getTag ()</a></td>
	<td class="summary">获取标签</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setTextTag">View:setTextTag (tag)</a></td>
	<td class="summary">设置标签</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getTextTag">View:getTextTag ()</a></td>
	<td class="summary">获取标签</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setDisplayRange">View:setDisplayRange (display)</a></td>
	<td class="summary">是否限制视图渲染范围</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isDisplayRange">View:isDisplayRange ()</a></td>
	<td class="summary">是否限制视图渲染范围</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:update">View:update (tick)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:reViewlayout">View:reViewlayout (sz)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setDirty">View:setDirty (dirty)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isDirty">View:isDirty ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isImageRectRotated">View:isImageRectRotated ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getAtlasIndex">View:getAtlasIndex ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setAtlasIndex">View:setAtlasIndex (index)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getImageRect">View:getImageRect ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isFlipX">View:isFlipX ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:isFlipY">View:isFlipY ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setFlipX">View:setFlipX (flip)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setFlipY">View:setFlipY (flip)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:setCallback">View:setCallback (string, function)</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#View:getCallback">View:getCallback (string)</a></td>
	<td class="summary">

</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "View:new"></a>
    <strong>View:new ([frame])</strong>
    </dt>
    <dd>
    创建对象


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">frame</span>
            <span class="types"><span class="type">Rect</span></span>



         (<em>optional</em>)
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        View view
    </ol>




</dd>
    <dt>
    <a name = "View:setColor"></a>
    <strong>View:setColor (Color)</strong>
    </dt>
    <dd>
    设置颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setLayout"></a>
    <strong>View:setLayout (DLayout)</strong>
    </dt>
    <dd>
    设置布局


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">DLayout</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getLayout"></a>
    <strong>View:getLayout ()</strong>
    </dt>
    <dd>
    获取布局



    <h3>Returns:</h3>
    <ol>

        DLayout
    </ol>




</dd>
    <dt>
    <a name = "View:getColor"></a>
    <strong>View:getColor ()</strong>
    </dt>
    <dd>
    获取颜色



    <h3>Returns:</h3>
    <ol>

        Color
    </ol>




</dd>
    <dt>
    <a name = "View:getDisplayedColor"></a>
    <strong>View:getDisplayedColor ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

        Color
    </ol>




</dd>
    <dt>
    <a name = "View:getDisplayedAlpha"></a>
    <strong>View:getDisplayedAlpha ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

        alpha
    </ol>




</dd>
    <dt>
    <a name = "View:getAlpha"></a>
    <strong>View:getAlpha ()</strong>
    </dt>
    <dd>
    获取透明度



    <h3>Returns:</h3>
    <ol>

        alpha
    </ol>




</dd>
    <dt>
    <a name = "View:setAlpha"></a>
    <strong>View:setAlpha (alpha)</strong>
    </dt>
    <dd>
    设置透明度


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">alpha</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:updateDisplayedColor"></a>
    <strong>View:updateDisplayedColor (Color)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">Color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:updateDisplayedAlpha"></a>
    <strong>View:updateDisplayedAlpha (alpha)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">alpha</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:description"></a>
    <strong>View:description (description)</strong>
    </dt>
    <dd>
    描述，供调试使用例如：<CAView | TextTag = %s | Tag = %d >


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">description</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setZOrder"></a>
    <strong>View:setZOrder (zorder)</strong>
    </dt>
    <dd>
    设置zorder


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">zorder</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getZOrder"></a>
    <strong>View:getZOrder ()</strong>
    </dt>
    <dd>
    获取zorder



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        zorder
    </ol>




</dd>
    <dt>
    <a name = "View:setVertexZ"></a>
    <strong>View:setVertexZ (vertexz)</strong>
    </dt>
    <dd>
    设置顶点z轴值


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">vertexz</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getVertexZ"></a>
    <strong>View:getVertexZ ()</strong>
    </dt>
    <dd>
    获取顶点z轴值



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        vertexz
    </ol>




</dd>
    <dt>
    <a name = "View:setScaleX"></a>
    <strong>View:setScaleX (scale)</strong>
    </dt>
    <dd>
    设置x轴缩放


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">scale</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getScaleX"></a>
    <strong>View:getScaleX ()</strong>
    </dt>
    <dd>
    获取x轴缩放



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        scale
    </ol>




</dd>
    <dt>
    <a name = "View:setScaleY"></a>
    <strong>View:setScaleY (scale)</strong>
    </dt>
    <dd>
    设置y轴缩放


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">scale</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getScaleY"></a>
    <strong>View:getScaleY ()</strong>
    </dt>
    <dd>
    获取y轴缩放



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        scale
    </ol>




</dd>
    <dt>
    <a name = "View:setScale"></a>
    <strong>View:setScale (scale)</strong>
    </dt>
    <dd>
    设置缩放


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">scale</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getScale"></a>
    <strong>View:getScale ()</strong>
    </dt>
    <dd>
    获取缩放



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        scale
    </ol>




</dd>
    <dt>
    <a name = "View:setSkewX"></a>
    <strong>View:setSkewX (skew)</strong>
    </dt>
    <dd>
    设置X倾斜


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">skew</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getSkewX"></a>
    <strong>View:getSkewX ()</strong>
    </dt>
    <dd>
    获取X倾斜



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        skewX
    </ol>




</dd>
    <dt>
    <a name = "View:setSkewY"></a>
    <strong>View:setSkewY (skew)</strong>
    </dt>
    <dd>
    设置Y倾斜


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">skew</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getSkewY"></a>
    <strong>View:getSkewY ()</strong>
    </dt>
    <dd>
    获取Y倾斜



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        skew
    </ol>




</dd>
    <dt>
    <a name = "View:setAnchorPoint"></a>
    <strong>View:setAnchorPoint (point)</strong>
    </dt>
    <dd>
    设置锚点例如0.5,0.5表示居中


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">point</span>
            <span class="types"><span class="type">Point</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getAnchorPoint"></a>
    <strong>View:getAnchorPoint ()</strong>
    </dt>
    <dd>
    获取锚点



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Point</span></span>
        point
    </ol>




</dd>
    <dt>
    <a name = "View:setAnchorPointInPoints"></a>
    <strong>View:setAnchorPointInPoints (point)</strong>
    </dt>
    <dd>
    设置锚点的坐标点


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">point</span>
            <span class="types"><span class="type">Point</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getAnchorPointInPoints"></a>
    <strong>View:getAnchorPointInPoints ()</strong>
    </dt>
    <dd>
    获取锚点的坐标点



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Point</span></span>
        point
    </ol>




</dd>
    <dt>
    <a name = "View:setFrame"></a>
    <strong>View:setFrame (rect)</strong>
    </dt>
    <dd>
    设置位置


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rect</span>
            <span class="types"><span class="type">Rect</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getFrame"></a>
    <strong>View:getFrame ()</strong>
    </dt>
    <dd>
    获取位置



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Rect</span></span>
        rect
    </ol>




</dd>
    <dt>
    <a name = "View:setFrameOrigin"></a>
    <strong>View:setFrameOrigin (origin)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">origin</span>
            <span class="types"><span class="type">Point</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getFrameOrigin"></a>
    <strong>View:getFrameOrigin ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Point</span></span>
        origin
    </ol>




</dd>
    <dt>
    <a name = "View:setCenter"></a>
    <strong>View:setCenter (center)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">center</span>
            <span class="types"><span class="type">Rect</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getCenter"></a>
    <strong>View:getCenter ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Rect</span></span>
        center
    </ol>




</dd>
    <dt>
    <a name = "View:setBounds"></a>
    <strong>View:setBounds (size)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">Size</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getBounds"></a>
    <strong>View:getBounds ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "View:setCenterOrigin"></a>
    <strong>View:setCenterOrigin (origin)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">origin</span>
            <span class="types"><span class="type">Point</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getCenterOrigin"></a>
    <strong>View:getCenterOrigin ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Point</span></span>
        origin
    </ol>




</dd>
    <dt>
    <a name = "View:setNativeSize"></a>
    <strong>View:setNativeSize (size)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">Size</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setNativeWidth"></a>
    <strong>View:setNativeWidth (width)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">width</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setNativeHeight"></a>
    <strong>View:setNativeHeight (height)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">height</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getNativeSize"></a>
    <strong>View:getNativeSize ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        size
    </ol>




</dd>
    <dt>
    <a name = "View:setVisible"></a>
    <strong>View:setVisible (visible)</strong>
    </dt>
    <dd>
    设置是否显示


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">visible</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:isVisible"></a>
    <strong>View:isVisible ()</strong>
    </dt>
    <dd>
    是否显示



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        visible
    </ol>




</dd>
    <dt>
    <a name = "View:setRotation"></a>
    <strong>View:setRotation (rotation)</strong>
    </dt>
    <dd>
    设置旋转


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rotation</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getRotation"></a>
    <strong>View:getRotation ()</strong>
    </dt>
    <dd>
    获取旋转度



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        rotation
    </ol>




</dd>
    <dt>
    <a name = "View:setRotationX"></a>
    <strong>View:setRotationX (rotation)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rotation</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getRotationX"></a>
    <strong>View:getRotationX ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        rotation
    </ol>




</dd>
    <dt>
    <a name = "View:setRotationY"></a>
    <strong>View:setRotationY (rotation)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">rotation</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getRotationY"></a>
    <strong>View:getRotationY ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        rotation
    </ol>




</dd>
    <dt>
    <a name = "View:addSubview"></a>
    <strong>View:addSubview (view)</strong>
    </dt>
    <dd>
    添加子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">view</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:insertSubview"></a>
    <strong>View:insertSubview (view, zorder)</strong>
    </dt>
    <dd>
    插入视图，指定插入渲染顺序


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">view</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
        <li><span class="parameter">zorder</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getSubviewByTag"></a>
    <strong>View:getSubviewByTag (tag)</strong>
    </dt>
    <dd>
    根据标签查找子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view or nil
    </ol>




</dd>
    <dt>
    <a name = "View:getSubviewByTextTag"></a>
    <strong>View:getSubviewByTextTag (tag)</strong>
    </dt>
    <dd>
    根据文本标签查找子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view or nil
    </ol>




</dd>
    <dt>
    <a name = "View:getSubviewByTagEx"></a>
    <strong>View:getSubviewByTagEx (tag)</strong>
    </dt>
    <dd>
    根据标签递归查找所有子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view or nil
    </ol>




</dd>
    <dt>
    <a name = "View:getSubviewByTextTagEx"></a>
    <strong>View:getSubviewByTextTagEx (tag)</strong>
    </dt>
    <dd>
    根据文本标签递归查找所有子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view or nil
    </ol>




</dd>
    <dt>
    <a name = "View:getSubviewByIdx"></a>
    <strong>View:getSubviewByIdx (index)</strong>
    </dt>
    <dd>
    根据索引查找子视图，用于遍历子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view or nil
    </ol>




</dd>
    <dt>
    <a name = "View:getSubviewsCount"></a>
    <strong>View:getSubviewsCount ()</strong>
    </dt>
    <dd>
    获取子视图的数量



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        count
    </ol>




</dd>
    <dt>
    <a name = "View:setSuperview"></a>
    <strong>View:setSuperview (supperView)</strong>
    </dt>
    <dd>
    设置视图的父视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">supperView</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getSuperview"></a>
    <strong>View:getSuperview ()</strong>
    </dt>
    <dd>
    获取视图的父视图



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        supperView
    </ol>




</dd>
    <dt>
    <a name = "View:removeFromSuperview"></a>
    <strong>View:removeFromSuperview ()</strong>
    </dt>
    <dd>
    从父视图移除该视图







</dd>
    <dt>
    <a name = "View:removeSubview"></a>
    <strong>View:removeSubview (subView)</strong>
    </dt>
    <dd>
    移除子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">subView</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:removeSubviewByTag"></a>
    <strong>View:removeSubviewByTag (tag)</strong>
    </dt>
    <dd>
    根据标签移除子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:removeSubviewByTextTag"></a>
    <strong>View:removeSubviewByTextTag (tag)</strong>
    </dt>
    <dd>
    根据标签移除子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:removeAllSubviews"></a>
    <strong>View:removeAllSubviews ()</strong>
    </dt>
    <dd>
    移除所有子视图







</dd>
    <dt>
    <a name = "View:reorderSubview"></a>
    <strong>View:reorderSubview (child, zorder)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">child</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
        <li><span class="parameter">zorder</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:sortAllSubviews"></a>
    <strong>View:sortAllSubviews ()</strong>
    </dt>
    <dd>










</dd>
    <dt>
    <a name = "View:isRunning"></a>
    <strong>View:isRunning ()</strong>
    </dt>
    <dd>
    视图是否正在运行



    <h3>Returns:</h3>
    <ol>

        running
    </ol>




</dd>
    <dt>
    <a name = "View:setTag"></a>
    <strong>View:setTag (tag)</strong>
    </dt>
    <dd>
    设置标签


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getTag"></a>
    <strong>View:getTag ()</strong>
    </dt>
    <dd>
    获取标签



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        tag
    </ol>




</dd>
    <dt>
    <a name = "View:setTextTag"></a>
    <strong>View:setTextTag (tag)</strong>
    </dt>
    <dd>
    设置标签


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tag</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getTextTag"></a>
    <strong>View:getTextTag ()</strong>
    </dt>
    <dd>
    获取标签



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        tag
    </ol>




</dd>
    <dt>
    <a name = "View:setDisplayRange"></a>
    <strong>View:setDisplayRange (display)</strong>
    </dt>
    <dd>
    是否限制视图渲染范围


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">display</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:isDisplayRange"></a>
    <strong>View:isDisplayRange ()</strong>
    </dt>
    <dd>
    是否限制视图渲染范围



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        display
    </ol>




</dd>
    <dt>
    <a name = "View:update"></a>
    <strong>View:update (tick)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">tick</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:reViewlayout"></a>
    <strong>View:reViewlayout (sz)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">sz</span>
            <span class="types"><span class="type">Size</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setDirty"></a>
    <strong>View:setDirty (dirty)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">dirty</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:isDirty"></a>
    <strong>View:isDirty ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        dirty
    </ol>




</dd>
    <dt>
    <a name = "View:isImageRectRotated"></a>
    <strong>View:isImageRectRotated ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isImageRectRotated
    </ol>




</dd>
    <dt>
    <a name = "View:getAtlasIndex"></a>
    <strong>View:getAtlasIndex ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        index
    </ol>




</dd>
    <dt>
    <a name = "View:setAtlasIndex"></a>
    <strong>View:setAtlasIndex (index)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getImageRect"></a>
    <strong>View:getImageRect ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Rect</span></span>
        rc
    </ol>




</dd>
    <dt>
    <a name = "View:isFlipX"></a>
    <strong>View:isFlipX ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        flip
    </ol>




</dd>
    <dt>
    <a name = "View:isFlipY"></a>
    <strong>View:isFlipY ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        flip
    </ol>




</dd>
    <dt>
    <a name = "View:setFlipX"></a>
    <strong>View:setFlipX (flip)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">flip</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setFlipY"></a>
    <strong>View:setFlipY (flip)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">flip</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:setCallback"></a>
    <strong>View:setCallback (string, function)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         or int key
        </li>
        <li><span class="parameter">function</span>
         callback
        </li>
    </ul>





</dd>
    <dt>
    <a name = "View:getCallback"></a>
    <strong>View:getCallback (string)</strong>
    </dt>
    <dd>





    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         or int key
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">function</span></span>
        callback or nil
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
